package com.woniu.daiquhua.service.impl;

import com.woniu.daiquhua.entity.UserMessage;
import com.woniu.daiquhua.mapper.UserMessageMapper;
import com.woniu.daiquhua.service.UserMessageService;
import com.woniu.daiquhua.vo.UserMessageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserMessageServiceImpl implements UserMessageService {
    @Autowired
    UserMessageMapper mapper;


    @Override
    public int insert(UserMessageVo userMessage) {
        return mapper.insert(userMessage);
    }

    @Override
    public UserMessage findByCid(String cid) {
        return mapper.findByCid(cid);
    }
}
